// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import { getHost } from "../../Managers/NetManager";
import { GAME_ID } from "../../Platforms/PBPlatform";
import WebUI from "../UIs/WebUI";

const { ccclass, property } = cc._decorator;

@ccclass
export default class RichTextClickHander extends cc.Component {

    @property(WebUI)
    webUI: WebUI = null;

    /**隐私保护请求
        */
    userPrivacyAgreementRequest() {
        let url: string = getHost() + "/privacy/userPrivacyAgreement/" + GAME_ID;
        this.webUI.showUI("隐私保护引导", url);
        // NetManager.Instance.doHttp(url, null, "GET", cb);
    }
    /**用户协议 */
    userAgreementRequest() {
        let url: string = getHost() + "/privacy/userAgreement/" + GAME_ID;
        this.webUI.showUI("用户协议", url);
        // NetManager.Instance.doHttp(url, null, "GET", cb);
    }
}
